package org.nutz.stu.dao;

import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.dao.entity.Record;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

/**
 * @Auther: xiaoyuan
 * @Date: 2019/1/30
 * @Description:
 */
@IocBean
public class StudentDao {

    @Inject
    private Dao dao;

   public Record getStudentById(Integer id){
        return dao.fetch("student", Cnd.where("id","=",id));
    }
}
